package com.mineplatform.mapper;


import com.mineplatform.domain.M_User;
import com.mineplatform.dto.rep.GetuserInfoRep;

public class GetuserInfoMapper {

	public static GetuserInfoRep parse(M_User user) {
	
		
		GetuserInfoRep rep=new GetuserInfoRep();
		rep.setId(user.getId());
		rep.setUsername(user.getUserName());
		rep.setNickname(user.getUserNickName());
		rep.setGender(user.getUserGender());
		rep.setAge(user.getUserAge());
		rep.setAvatar(user.getUserAvatar());
		rep.setEducation(user.getUserEducation());
		rep.setProfession(user.getUserProfession());
		rep.setCompany(user.getUserCompany());
		rep.setJobtitle(user.getUserJobTitle());
		rep.setDirection(user.getUserDirection());
		rep.setWorkexperience(user.getUserWorkExperience());
		rep.setUsertype(user.getUserType());
		rep.setPrice(user.getPrice());
		
		rep.setPrisecount(user.getPraiseCount());
		
		return rep;
	}
	
}
